import { lazy } from "react";

export interface RouteInterface {
    path: string,
    component: any,
    routes?: Array<RouteInterface>
}

export const sitemaps: RouteInterface[] = [
  {
    path: "sua/login",
    component: lazy(() => import("./sua/login")),
    routes: []
  },
  {
    path: "sua/passinit",
    component: lazy(() => import("./sua/passinit")),
    routes: []
  },
  {
    path: "sua/register",
    component: lazy(() => import("./sua/register")),
    routes: []
  },
  {
    path: "sua/pin",
    component: lazy(() => import("./sua/pin")),
    routes: []
  },
  {
    path: "sua/console",
    component: lazy(() => import("./console/home")),
    routes: []
  },
  {
    path: "sua/admin",
    component: lazy(() => import("./admin/home")),
    routes: []
  },
  {
    path: "sua/admin/accounts",
    component: lazy(() => import("./admin/account/list")),
    routes: []
  },
  {
    path: "sua/admin/account/info",
    component: lazy(() => import("./admin/account/info")),
    routes: []
  },
  {
    path: "sua/admin/account/new",
    component: lazy(() => import("./admin/account/new")),
    routes: []
  },
  {
    path: "*",
    component: lazy(() => import ("./home")),
    routes: []
  }
];
